package transaction;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 事物
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-9
 */
public class Transaction {

	public Object around(ProceedingJoinPoint pj) throws Throwable {

		// Start Transaction
		System.out.println(" Start Transaction ...");

		Object result = pj.proceed();

		// End Transaction
		System.out.println(" End Transaction...");

		return result;
	}
}
